package edu.zju.cst.myproject.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "user")
public class User {
	private Integer id;
	private String name;
	private String address;

	public User() {

	}

	public User(String name, String address) {
		super();
		this.name = name;
		this.address = address;
	}

	public User(Integer id, String name, String address) {
		this.id = id;
		this.name = name;
		this.address = address;
	}
	@Id
	@GeneratedValue

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String sayHello(String name) {
		return "Hello " + name;
	}

}